<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <link rel="stylesheet" type="text/css" href="../css/aui.css">
    <link rel="stylesheet" type="text/css" href="../css/aui-slide.css">
    <link rel="stylesheet" type="text/css" href="../css/api.css">
    <script type="text/javascript" src="../script/api.js"></script>
</head>

<body >
    <header class="aui-bar aui-bar-nav" id="header">
        <span class="aui-iconfont aui-icon-left aui-pull-left" onclick="api.closeWin()">返回</span>
    </header>
    <div class="main" id="main" style="height:100%;">

    </div>
</body>
<script type="text/javascript">
    var arr = [
        'ai.m.taobao.com/',
        'mk517.com%2findex.php%3fmod%3dhuan%26act%3dlist',
        'www.etao.com/cjfl/info.htm?prepvid=200_11.224.194.80_284_1508317787888&extra=&spm=a231o.7076277.810001.1.8d9b655DBixQ3&activityId=453886&pid=mm_10011550_0_0&clk1=&unid=&source_id=&app_pvid=200_11.224.194.80_284_1508317787888',
        'tyh.m.taobao.com/?ali_trackid=2:mm_10011550_0_0:1508316812_2k2_1538534990&spm=a231o.7076277.20001.7&pvid=200_10.178.79.191_167559_1508312134271#a=&c=0&q=&s=0&page=1&',
        'temai.taobao.com/cheap.htm?spm=a21ap.7701290.2001.5.408b27f65vGn70&prepvid=200_10.177.79.37_150_1508318680132&extra=&cid=104&pid=mm_10011550_0_0&clk1=&unid=&source_id=&app_pvid=&vcid=',
        'temai.taobao.com/cheap.htm?prepvid=200_11.224.194.80_284_1508317787888&extra=&spm=a231o.7076277.1998549605.2.8d9b655DBixQ3&cid=101&pid=mm_10011550_0_0&clk1=&unid=&source_id=&app_pvid=200_11.224.194.80_284_1508317787888',
        'temai.taobao.com/cheap.htm?prepvid=200_11.224.194.80_284_1508317787888&extra=&spm=a231o.7076277.1998549605.781.8d9b655DBixQ3&cid=105&pid=mm_10011550_0_0&clk1=&unid=&source_id=&app_pvid=200_11.224.194.80_284_1508317787888',
        'www.etao.com/?prepvid=200_11.224.194.80_284_1508317787888&extra=&spm=a231o.7076277.20001.2.8d9b655DBixQ3&pid=mm_10011550_0_0&clk1=&unid=&source_id=&app_pvid=200_11.224.194.80_284_1508317787888',
        'ju.m.taobao.com/?ali_trackid=2&ali_trackid=2:mm_10011550_0_0:1508320074_244_195333782&spm=a231o.7076277.1998549683.5&pvid=200_11.224.194.80_284_1508317787888',
        'temai.taobao.com/cheap.htm?prepvid=200_10.179.66.22_254_1509587803205&extra=&pt=1&cid=&vcid=&pid=mm_10011550_2325296_9002527'
    ]
    apiready = function() {

            var header = $api.byId('header');
            var headerPos = $api.offset(header);
            var index = api.pageParam.index; //取到home中传到的索引
            function open(index) {
                api.openFrame({
                    name: 'taobao',
                    url: 'https://' + arr[index],
                    rect: {
                        x: 0,
                        y: headerPos.h,
                        w: 'auto',
                        h: 'auto'
                    },
                    allowEdit:true
                });

            }
              open(index);
          }
</script>

</html>
